package com.snowleopard.findpeople.entity.account;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.snowleopard.common.base.BaseEntity;

/**
 * Menu.
 */
@Entity
@Table(name = "acct_menu")
public class Menu extends BaseEntity {

    private static final long serialVersionUID = -4611358964952343044L;

    @Column(name = "func_code", nullable = false, length = 30)
    private String funcCode;

    @Column(name = "type", nullable = false, length = 30)
    private String menuType;

    @Column(name = "name", nullable = false, length = 240)
    private String menuName;

    @Column(name = "level_1_pos", nullable = false)
    private Byte level1Pos;

    @Column(name = "level_2_pos")
    private Byte level2Pos;

    @Column(name = "level_3_pos")
    private Byte level3Pos;

    @Column(name = "level_4_pos")
    private Byte level4Pos;

    @Column(name = "func_action", length = 100)
    private String funcAction;

    public Menu() {
    }

    public Menu(String funcCode, String menuType, String menuName, Byte level1Pos) {
        this.funcCode = funcCode;
        this.menuType = menuType;
        this.menuName = menuName;
        this.level1Pos = level1Pos;
    }

    public String getFuncCode() {
        return this.funcCode;
    }

    public void setFuncCode(String funcCode) {
        this.funcCode = funcCode;
    }

    public String getMenuType() {
        return this.menuType;
    }

    public void setMenuType(String menuType) {
        this.menuType = menuType;
    }

    public String getMenuName() {
        return this.menuName;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }

    public Byte getLevel1Pos() {
        return this.level1Pos;
    }

    public void setLevel1Pos(Byte level1Pos) {
        this.level1Pos = level1Pos;
    }

    public Byte getLevel2Pos() {
        return this.level2Pos;
    }

    public void setLevel2Pos(Byte level2Pos) {
        this.level2Pos = level2Pos;
    }

    public Byte getLevel3Pos() {
        return this.level3Pos;
    }

    public void setLevel3Pos(Byte level3Pos) {
        this.level3Pos = level3Pos;
    }

    public Byte getLevel4Pos() {
        return this.level4Pos;
    }

    public void setLevel4Pos(Byte level4Pos) {
        this.level4Pos = level4Pos;
    }

    public String getFuncAction() {
        return this.funcAction;
    }

    public void setFuncAction(String funcAction) {
        this.funcAction = funcAction;
    }

}
